﻿@model NationalIT.mMenu
<h3>
    Edit Menu </h3>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@Html.ValidationSummary(true, "Edit unsuccessfully")
@using (Html.BeginForm("Edit", "Menu"))
{
   <div>
        <div class="control-group">
            <label class="control-label">
                Menu Name</label>
            <div class="controls">
                @Html.TextBoxFor(m => m.Title)
            </div>
            <label class="control-label">
                Location</label>
            <div class="controls">
                @Html.TextBoxFor(m => m.Oder)
            </div>
            <label class="control-label">
                URL</label>
            <div class="controls">
                @Html.TextBoxFor(m => m.Url)
            </div>
            <label class="control-label">
                Menu parent</label>
            <div class="controls">
                @Html.DropDownListFor(m => m.ParentID, (SelectList)ViewBag.dropDown)
            </div>
            <br />
            <input type="submit" value="OK" class="btn btn-primary"/>
            <button type="button" class="btn" onclick="javascript:window.history.go(-1);">
                Cancel</button>
        </div>
    </div>
}